package eu.testing.system.models;

import java.util.List;

public class UserData {
	private String username;
	private String password;
	private String firstName;
	private String lastName;
	private String email;
	private String authority;
	private boolean enabled;
	private List<Result> results;
	private String group;

	public UserData() {

	}

	public UserData(String username, String password, String firstName,
			String lastName, String email, boolean enabled,
			List<Result> results, String group) {
		super();
		this.username = username;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
		this.enabled = enabled;
		this.results = results;
		this.group = group;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public List<Result> getResults() {
		return results;
	}

	public void setResults(List<Result> results) {
		this.results = results;
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	@Override
	public String toString() {
		StringBuilder result = new StringBuilder();
		String NEW_LINE = System.getProperty("line.separator");
		result.append(this.getClass().getName() + " Object { " + NEW_LINE);
		result.append(" USERNAME: " + this.username + NEW_LINE);
		result.append(" PASSWORD: " + this.password + NEW_LINE);
		result.append(" FIRSTNAME: " + this.firstName + NEW_LINE);
		result.append(" LASTNAME: " + this.lastName + NEW_LINE);
		result.append(" EMAIL: " + this.email + NEW_LINE);
		result.append(" ROLE: " + this.authority + NEW_LINE);
		result.append("GROUP: " + this.group + NEW_LINE);

		result.append("}");

		return result.toString();
	}

}